package com.fangrui.mapper;

import com.fangrui.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;

//
// Created by ✎﹏ℳ๓独赏☆独醉 on 2025/4/22 18:20.
//
@Mapper
public interface EmpMapper {
    long getTotal();

    List<Emp> getAllEmps(Integer start,Integer pageSize);


    List<Emp> getAllEmpsByConditions(String name, Short gender, LocalDate begin, LocalDate end);

    int deleteEmps(List<Integer> arr);

    int addEmp(Emp emp);

    Emp getEmpById(Integer id);

    int updateEmp(Emp emp);

    Emp login(Emp emp);
}
